* Melitz-Mayer-Ottaviano master do file
* "Product Mix and Firm Productivity Responses to Trade Competition"
* Review of Economics and Statistics 2020
*
******************************************
*Very first step: run setdir.do for paths*
******************************************
*
global USER : environment LOGNAME
if "$USER"=="marc" {
cd "~/Dropbox/work/projects/MMO_prod/dofiles_replication"
	}
else {
cd "~/Dropbox/MMO_prod/dofiles_replication"
	}
*
do setdir
*

************************
* Assembly of all data *
************************
*
cd $DIRDATA
*
do $DIRDO/MMO_C_regfile // version with manufacturing only
*
********************************
*Now begins the regression part*
********************************
*
*** Regression master files (Manufacturing only) ***
do $DIRDO/skewregs_Restat_rev
do $DIRDO/skewregs_leadlaggraphs
*
*** Regression for non mfg firms    *** 
*** Includes the data assembly file ***
do $DIRDO/skewregs_Restat_rev_nonmfg
*
* Desc stats 
do $DIRDO/skewregs_tab1.do
*
* Aggregate productivity impact
do $DIRDO/skewregs_tableD1.do


